package com.ruiya.staging.goods.cas.util;

public class OkUtils {

    public static boolean isOk(com.ruiya.staging.goods.data.grpc.RpcStatus rpcStatus){
        return rpcStatus.getCode() == com.ruiya.staging.goods.data.grpc.RpcStatus.Codes.OK_VALUE;
    }

    public static boolean isOk(com.ruiya.staging.goods.locate.grpc.RpcStatus rpcStatus){
        return rpcStatus.getCode() == com.ruiya.staging.goods.locate.grpc.RpcStatus.Codes.OK_VALUE;
    }

}
